-- GENERATED SPELL FOR [Knucklerot] --


function spell0_16246(pUnit, Event) --@Corrosive Poison,n/a--
pUnit:FullCastSpellOnTarget(3396,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16246', 31500, 1)
end

function spell1_16246(pUnit, Event) --@Tetanus,n/a--
pUnit:FullCastSpellOnTarget(8014,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16246', 634, 1)
end

function Sorts_16246(pUnit, Event)
local choix_sorts_16246 = math.random(0, 1)
if choix_sorts_16246 == 0 then
pUnit:RegisterEvent('spell0_16246', 1, 1)
end
if choix_sorts_16246 == 1 then
pUnit:RegisterEvent('spell1_16246', 1, 1)
end
end

function mob16246_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16246', math.random(1500, 3000), 1)
end

function mob16246_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16246_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16246_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16246, 1, 'mob16246_Action')
RegisterUnitEvent(16246, 2, 'mob16246_Leave')
RegisterUnitEvent(16246, 3, 'mob16246_Kill')
RegisterUnitEvent(16246, 4, 'mob16246_Die')
